package org.md.budzik.problems;

import java.math.BigInteger;

/**
 * Obsługa działania mod.
 * @author Wiezzel
 *
 */
public class Modulo extends TwoArgOp {

	public Modulo(Expression ex2, Expression ex1) {
		super(ex2, ex1);
	}

	protected BigInteger computeOperation(BigInteger x, BigInteger y) throws ParseException {
		return x.mod(y);
	}

	protected String operationSymbol() {
		return "%";
	}

}
